home *** CD-ROM | disk | FTP | other *** search
- RTNCODE Documentation -- December 31, 1986 -- R.D.Allen
-
- RTNCODE is a little program that you can place in a Batch
- file to control ERRORLEVEL values as seen by the Batch
- file processor.
-
- You pass to RTNCODE the command line you wanted to pass to
- DOS and it runs the program (passing arguments) and stays
- out of the way until that program terminates.
-
- It then reports the return code from the program ran and
- returns to DOS, as a return code (for ERRORLEVEL checks
- in Batch) the value of the byte at 040:00ff.
-
- If this sounds really stupid, it was done to allow some programming
- languages, which can't control the error code they return to DOS, a
- means to guarantee a given code will be returned.
-
- If this still sounds stupid, you had to be there.... So type
- DEL RTN*.* and be done with.
-
- The stuff in RTNCODE.ARC is free for use as long as it is not
- for profit. You will find:
-
- RTNCODE.DOC -- you're reading it.
- RTNCODE.C -- source to the program
- RTNCODE.COM -- an executable version
- RTNTEST.BAT -- a way to test the program
- MM.BAT -- if you have 3.1 Lattice, it's a mini make file
- once you enter your path stuff.
-
- R.D.Allen
- Stelson Products Company
- 1625 Travis
- Garland, TX 75042
-